package Work02.Task02;

/**
 * @Author: lu
 * @Date: 2021/8/21 17:11
 * @Description:
 */
public class PhoneTest {
    public static void main(String[] args) {
        Phone p1 = new OldPhone();
        p1.call();
        p1.mail();
        System.out.println("----------------");
        //Phone p2 = new NewPhone();
        //((NewPhone) p2).playGame();
        NewPhone p2 = new NewPhone();
        p2.playGame();
        p2.call();
        p2.mail();
    }
}
